import * as React from "react";
import logo from "../../../assets/logo.png";
import "./style.module.less";

export default class MenuHeader extends React.PureComponent<any, any> {
  public render() {
    const { collapsed } = this.props;
    if (collapsed) {
      return (
        <div className="menu-header collapsed">
          <img src={logo} />
        </div>
      );
    } else {
      return (
        <div className="menu-header">
          <h3 className="menu-head-title">移动框架管理平台</h3>
          <p className="menu-head-desc">一个应用热发布平台</p>
        </div>
      );
    }
  }
}